package com.sunsy.authserver.beans.po;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * (UserTenantRelation)表实体类
 *
 * @author makejava
 * @since 2021-07-20 14:40:45
 */
@Data
@TableName(value = "user_tenant_relation")
public class UserTenantRelation implements Serializable {

    private static final long serialVersionUID = -27756127353985776L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String tenantId;

    private Long userId;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 时间戳，创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createdTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updatedTime;

    /**
     * 用户对应租户的级别
     */
    private String role;


}